<template>
  <ant-modal
    modalWidth="576"
    modalHeight="500"
    :visible="open"
    :modal-title="formTitle"
    :adjust-size="true"
    @cancel="cancel"
  >
    <a-form-model ref="form" :model="form" :rules="rules" slot="content" layout="vertical">
      <a-row :gutter="32">
        <a-col :span="12">
          <a-form-model-item label="工序名称" prop="processName">
            <a-input v-model="form.processName" placeholder="请输入工序名称"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="工序编号" prop="processCode">
            <a-input v-model="form.processCode" placeholder="请输入工序编号"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12" >
          <a-form-model-item label="部门" prop="deptId">
            <select-dept
              v-model="form.deptId"
              select-model="single"
              select-scope="all"
           />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="交接工时" prop="standardHours">
            <a-input-number v-model="form.standardHours" :min="0" style="width: 100%"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="单位工资" prop="unitSalary">
            <a-input-number v-model="form.unitSalary" :min="0" style="width: 100%"/>
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="排序" prop="sortNumber">
            <a-input-number v-model="form.sortNumber" :min="0" style="width: 100%"/>
          </a-form-model-item>
        </a-col>
      </a-row>
    </a-form-model>
    <template slot="footer">
      <a-button :disabled="disabled" @click="cancel">
        取消
      </a-button>
      <a-button type="primary" :disabled="disabled" @click="submitForm(true)">
        保存
      </a-button>
    </template>
  </ant-modal>
</template>
<script>
import BizProductionProcessAddForm from './BizProductionProcessForm'
export default {
  ...BizProductionProcessAddForm
}
</script>
